<script setup>
import { defineProps ,ref} from 'vue'
const props = defineProps({
  color: {
    type: String,
    default: ''
  }
})
const emit = defineEmits(['editValue'])
const sonValue=ref("")
const sonText=defineModel()
</script>
<template>

  <h6>
    子组件：{{ sonText }}
  </h6>
</template>
<style scoped>
.red {
  color: red;
  background-color: black;
}
.green {
  color: green;
  background-color: blue;
}
</style>